/*
 * ScreenUI.c
 *
 *  Created on: Jun 19, 2021
 *      Author: user
 */
#include "ScreenUI.h"

void ValueDicision(CircuitInfoStructure *c_info)
{
	displayValue(RESISTANCE_ADDR, c_info->Resistance_kOmega);
	displayValue(CAPACITOR_ADDR, c_info->CapValue_uF);
	displayValue(INDUCTOR_ADDR, c_info->IndValue_mH);
	switch (c_info->conection_type)
	{
	case CapSingle:
		displayIcon(PIC_ADDR, (0x0001U));
		break;
	case IndSingle:
		displayIcon(PIC_ADDR, (0x0002U));
		break;
	case ResSingle:
		displayIcon(PIC_ADDR, (0x0003U));
		break;
	case RCSeries:
		displayIcon(PIC_ADDR, (0x0004U));
		break;
	case RLSeries:
		displayIcon(PIC_ADDR, (0x0005U));
		break;
	case LCSeries:
		displayIcon(PIC_ADDR, (0x0006U));
		break;
	case LCParallel:
		displayIcon(PIC_ADDR, (0x0007U));
		break;
	case RLParallel:
		displayIcon(PIC_ADDR, (0x0008U));
		break;
	case RCParallel:
		displayIcon(PIC_ADDR, (0x0009U));
		break;
	case RLC:
		displayIcon(PIC_ADDR, (0x0010U));
		break;
	default:
		displayIcon(PIC_ADDR, (0x0000U));
		break;
	}

}

void RefreshScreen(CircuitInfoStructure *c_info)
{
	ValueDicision(c_info);
}
